<template>
  <div class="page">
    <h1>Home</h1>
  </div>
</template>

<script>
export default {
  mounted() {
    // $bus.$on
    this.$bus.$on("home_change", (payload) => {
      console.log("home_change", payload);
    });
  },

  beforeDestroy() {
    // 收尾
    this.$bus.$off("home_change");
  },
};
</script>
